package com.code.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name = "mall-message-service",path = "/mall-message-service",url = "localhost:9003")
public interface MessageFeign {

    /**
     * 推送消息
     * @param str
     * @return
     */
    @GetMapping("/provider/send/{str}")
    public String send(@PathVariable("str") String str);
}
